export function formatmoney(num) {
  if (isNaN(num)) return 0;
  num = parseFloat(num);
  num = num.toLocaleString();
  return num; //返回的是字符串23,245.12保留2位小数
}
